package com.wang.service;

import org.springframework.stereotype.Component;

/**
 * @Classname PaymentFallbackService
 * @Description 统一为接口里面的方法进行异常处理
 * @Date 2024/2/28 21:31
 * @Created by pc
 */
@Component
public class PaymentFallbackService implements PaymentHystrixService{
    @Override
    public String paymentInfo_OK(Integer id) {
        return "----PaymentFallbackService\t fallback-paymentInfo_OK----";
    }
    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "----PaymentFallbackService\t fallback-paymentInfo_TimeOut----";
    }
}
